/**
 * 2009/12/04
 */
package com.googlecode.felicalib.sample.polling;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author o.tanaka
 */
public class CardInfo {

    private int serviceCode;
    private byte addr;
    private String value;

    /**
     * コンストラクター.
     */
    public CardInfo() {
        super();
    }

    /**
     * @return addr
     */
    public final byte getAddr() {
        return this.addr;
    }

    /**
     * @return key
     */
    public final String getKey() {
        return String.valueOf(this.serviceCode) + String.valueOf(this.addr);
    }

    /**
     * @return serviceCode
     */
    public final int getServiceCode() {
        return this.serviceCode;
    }

    /**
     * @return value
     */
    public final String getValue() {
        return this.value;
    }

    /**
     * @param aAddr
     *            the addr to set
     */
    public final void setAddr(final byte aAddr) {
        this.addr = aAddr;
    }

    /**
     * @param aServiceCode
     *            the serviceCode to set
     */
    public final void setServiceCode(final int aServiceCode) {
        this.serviceCode = aServiceCode;
    }

    /**
     * @param aValue
     *            the value to set
     */
    public final void setValue(final String aValue) {
        this.value = aValue;
    }

    /**
     * @return ToStringBuilder.reflectionToString(this);
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

}
